﻿@model IEnumerable<DanceIntegration.Models.EditUserViewModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    <a class=" " href="CreateNewUser" title="Создать"><span class="glyphicon glyphicon-edit"></span>Создать</a> <b>|</b>

    @Html.ActionLink("Create New", "CreateNewUser", null, new { @class = "btn btn-primary" })
</p>
<div class="table-responsive">
    <table class="table table-hover table-striped table-condensed">
        <tr >
            <th width="50"></th>
            <th width="150">
                @Html.DisplayNameFor(model => model.CanLogin)
            </th>
            <th >
                @Html.DisplayNameFor(model => model.UserName)
            </th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td class="make-xs-column">
                    <a class=" " href="edit/@item.UserName" title="Редактировать"><span class="glyphicon glyphicon-edit"></span></a> <b>|</b>
                    <a class=" " href="delete/@item.UserName" title="Удалить"><span class="glyphicon glyphicon-remove-circle"></span></a>
                </td>

                <td>
                    @Html.DisplayFor(modelItem => item.CanLogin)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.UserName)
                </td>

            </tr>
        }

    </table>
</div>
